import { User } from './user';

export interface HoleScore {
  caddieId: string;
  gameId: string;
  holeId: string;
  id: string;
  gmtCreate: string | number;
  gmtUpdate: string | number;
  kickOffDirection: number;
  kickOffType: number;
  parCount: number;
  penaltyCount: number;
  putCount: number;
  userId: string;
}

export interface TotalScore {
  id: number;
  gameId: string;
  userId: string;
  teeType: string;
  startNine: number;
  endNine: number;
  total: number;
  pureTotal: number;
  confirm: number;
  eagleCount: number;
  birdieCount: number;
  parCount: number;
  bogeyCount: number;
  doubleBogeyCount: number;
  moreBogeyCount: number;
  fairwayRatio: number;
  greenRatio: number;
  putCount: number;
  cdwf: number;
  caddieConfirm: number;
  caddieConfirmPics: string;
  playerResult?: number;
  gameResult?: string;
  gmtCreate: string | number;
  gmtUpdate: string | number;
}

export interface PlayerScore extends User {
  gameHoleScores: HoleScore[];
  caddie?: User;
  gameTotalScore?: TotalScore;
}

export interface Play1PlayerScore {
  phone: string;
  pureTotal: number;
  total: number;
  userId: string;
  userIdNo: string;
  userName: string;
  userSex: string;

  cdwf: number;
  rangList: number[];
  scoreList: number[];
  totalScore: number;
  frontNineScore: number;
  endNineScore: number;
}
